package com.xwdeshj.repository;

import com.xwdeshj.entity.XwFarmRoominfo;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by BKWJA on 2019/1/6.
 * 农家乐——农家住宿信息
 */
public interface XwFarmRoominfoRepository extends JpaRepository<XwFarmRoominfo,Integer> {

    //根据农家乐加密id，删除对应的记录
    public void deleteByFarmEncryptid(String farm_encryptId);

    //根据住宿id，获取对应的记录
    public XwFarmRoominfo findByFarmRoomId(Integer farm_room_id);

    //根据农家乐住宿id，删除对应的记录
    public int deleteByFarmRoomId(Integer farm_room_id);

}
